package com.jsb.laundry.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 工厂订单关联表
 * @TableName jsb_orders_factory
 */
@TableName(value ="jsb_orders_factory")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value = "JsbOrdersFactory对象",description = "工厂订单数据")
public class JsbOrdersFactory implements Serializable {
    @ApiModelProperty(value = "自增id", dataType = "int")
    @TableId(type = IdType.AUTO)
    private int id;

    @ApiModelProperty(value = "订单id", dataType = "String")
    private String orderId;

    @ApiModelProperty(value = "用户id", dataType = "string")
    private String userId;

    @ApiModelProperty(value = "小站id", dataType = "string")
    private String shopId;

    @ApiModelProperty(value = "工厂id", dataType = "string")
    private String factoryId;

    @ApiModelProperty(value = "状态 1未入库 2已入库 3已检查 4 已出库", dataType = "int")
    private int factoryOrdersStatus;

    @ApiModelProperty(value = "1小站 2快递", dataType = "int")
    private String type;

    @ApiModelProperty(value = "入库时间", dataType = "date")
    private Date inAt;

    @ApiModelProperty(value = "出库时间", dataType = "date")
    private Date outAt;

    @ApiModelProperty(value = "创建时间", dataType = "date")
    private Date createdAt;

    @ApiModelProperty(value = "更新时间", dataType = "date")
    private Date updatedAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}